"""
配置管理路由
"""
from fastapi import APIRouter
from config import config

router = APIRouter(prefix="/api/v1", tags=["配置管理"])

@router.get("/config")
async def get_config():
    """获取应用配置信息"""
    return config.get_config_dict()

@router.get("/config/logs")
async def get_log_config():
    """获取日志配置信息"""
    return {
        "log_level": config.log.level,
        "log_format": config.log.format,
        "max_file_size": config.log.max_file_size,
        "backup_count": config.log.backup_count,
        "third_party_levels": config.log.third_party_levels
    } 